package com.example.base.security.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "部门模型")
public class SysDeptVo {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "部门名称")
    @NotBlank(message = "部门名称不得为空")
    private String deptName;
    /**
     * 部门编号
     */
    @ApiModelProperty(value = "部门编号")
    @NotBlank(message = "部门编号不得为空")
    private String deptNo;
    /**
     * 父部门编号
     */
    @ApiModelProperty(value = "父部门编号")
    private Integer deptPid;
    /**
     * 部门管理员角色
     */
    @ApiModelProperty(value = "部门管理员角色")
    private String deptAdminRole;
    /**
     * 部门管理次要角色
     */
    @ApiModelProperty(value = "部门管理次要角色")
    private String deptAdminExtRole;

    @ApiModelProperty(value = "排序码")
    private Integer sortNum;

    @NotBlank(message = "是否启用不得为空")
    @ApiModelProperty(value = "是否启用")
    private Boolean isEnabled;

    @NotBlank(message = "部门备注不得为空")
    @ApiModelProperty(value = "部门备注")
    private String deptNote;
}
